package com.zyh.server.service;

import com.zyh.server.entity.User;
import com.zyh.server.utils.R;
import com.zyh.server.vo.MiaoshaGoodsVO;

public interface MiaoshaService {
	/**
	 * 秒杀商品，库存减一
	 * @param user
	 * @param miaoshaGoodsId
	 * @return
	 */
	R miaoSha(User user, Integer miaoshaGoodsId);

	R getMiaoshaResult(Integer id, Integer miaoshaGoodsId);

}
